import Vue from 'vue'
import mobileVideo from "./index";
new Vue({
  el: '#app',
  data(){
    return {
      list:[
        // "http://fg.sf8cloud.com/v/00619ec9-fcc0-48b0-a475-168e630f16ff/00619ec9-fcc0-48b0-a475-168e630f16ff.m3u8?accessKey=123&u=1",
        // "http://fg.sf8cloud.com/v/00619ec9-fcc0-48b0-a475-168e630f16ff/00619ec9-fcc0-48b0-a475-168e630f16ff.m3u8?accessKey=video_test_key102&u=2",
        // "https://fg.sf8cloud.com/v/9523339f44b64495926cb6f53df9261f/9523339f44b64495926cb6f53df9261f.m3u8?accessKey=video_test_key102&u=2"
        // "https://fg.sf8cloud.com/v/778e0075-eae0-419e-8963-ed78d83c301d/778e0075-eae0-419e-8963-ed78d83c301d.m3u8?accessKey=1kh754nb1ecz0s26"
        "https://dev-nfs.sf8cloud.com/receive/EZ-NFS-1a9511e2-690d-4784-817b-bcd859279953.mp4"
      ],
      video:null,
      startTime:10,
      // src:"https://dev-nfs.sf8cloud.com/receive/EZ-NFS-1a9511e2-690d-4784-817b-bcd859279953.mp4"
      // src:"https://dev-nfs.sf8cloud.com/receive/EZ-NFS-7e42dca9-3543-4686-89f9-2e0b415c78a8.mp4",
      src:"",
      // src:"https://nfs-src.sf8cloud.com/receive/EZ-NFS-ce5e81a6-a152-42ca-a0f6-238365292b70.mp4",
      // src1:"https://dev-nfs.sf8cloud.com/receive/EZ-NFS-1a9511e2-690d-4784-817b-bcd859279953.mp4"
      src1:"https://dev-nfs.sf8cloud.com/receive/EZ-NFS-2daa7dec-8218-44dd-a23e-63609ea80659.mp4"
      // src:"http://ydvideo.sf8cloud.com/download/1.mp4"
      // src:"http://fg.sf8cloud.com/v/00619ec9-fcc0-48b0-a475-168e630f16ff/00619ec9-fcc0-48b0-a475-168e630f16ff.m3u8"
      // src:"http://192.168.12.198:8000/v/00619ec9-fcc0-48b0-a475-168e630f16ff/00619ec9-fcc0-48b0-a475-168e630f16ff.m3u8?accessKey=123&u=32"
    }
  },
  mounted(){
    let _this = this;
    setTimeout(()=>{
      // this.list = ["http://ydvideo.sf8cloud.com/download/2.mp4","http://ydvideo.sf8cloud.com/download/2.mp4","http://ydvideo.sf8cloud.com/download/2.mp4" ]
      // _this.src = "http://ydvideo.sf8cloud.com/download/1.mp4"
    },2000)
  },
  methods:{
    initFinish(video){
     // this.video = video;
    },
    changeTime(){
      // alert(this.video.duration)
      // this.video.currentTime = 20;
    },
    change(){
      this.src = "https://nfs-src.sf8cloud.com/receive/EZ-NFS-ec56b8ad-534b-4b13-bd2e-91a332e0309a.mp4";
      // this.src1 = "https://nfs-src.sf8cloud.com/receive/EZ-NFS-ce5e81a6-a152-42ca-a0f6-238365292b70.mp4";
      this.startTime = 20;
    }
  },
  components:{mobileVideo},
})
